package com.acmen.demo.dto.vo;

import com.acmen.demo.model.User;
import com.acmen.easyapi.annotation.ResParam;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * 用户对象 user
 *
 * @author acmen
 */
public class UserVO extends User {
    /**
     * 用户ID
     */
    @ResParam(label = "用户序号")
    private Long id;
    @ResParam(label = "组织编号")
    private String orgNo;
    /**
     * 最后登录IP
     */
    @ResParam(label = "最后登录IP")
    private String loginIp;
    /**
     * 最后登录时间
     */
    @ResParam(label = "最后登录时间")
    private LocalDateTime loginDt;
    /**
     * 最后登录时间
     */
    @ResParam(label = "创建时间")
    private LocalDateTime createDt;

    @ResParam(label = "菜单权限")
    private Set<String> menuPermissions;


    public Long getId() {
        return id;
    }

    public UserVO setId(Long id) {
        this.id = id;
        return this;
    }

    public String getOrgNo() {
        return orgNo;
    }

    public UserVO setOrgNo(String orgNo) {
        this.orgNo = orgNo;
        return this;
    }

    public String getLoginIp() {
        return loginIp;
    }

    public UserVO setLoginIp(String loginIp) {
        this.loginIp = loginIp;
        return this;
    }

    public LocalDateTime getLoginDt() {
        return loginDt;
    }

    public UserVO setLoginDt(LocalDateTime loginDt) {
        this.loginDt = loginDt;
        return this;
    }

    public LocalDateTime getCreateDt() {
        return createDt;
    }

    public UserVO setCreateDt(LocalDateTime createDt) {
        this.createDt = createDt;
        return this;
    }

    public Set<String> getMenuPermissions() {
        return menuPermissions;
    }

    public UserVO setMenuPermissions(Set<String> menuPermissions) {
        this.menuPermissions = menuPermissions;
        return this;
    }
}
